<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="container">
	<h3>我的日程</h3>
	<br />
	<div class="row">
		<form class="form-inline">

			<div class="form-group">
				<label>日程名称：</label> <input id="searchTitle" class="form-control">
			</div>
			<button id="btnSearch" type="button" class="btn btn-default">查询</button>
		</form>
		<br />
	</div>
	<div class="row">
		<table id="movieTable" class="table table-striped table-bordered">
			<thead>
				<tr>
					<th>序号</th>
					<th style="width:100px">会议标题</th>
					<th style="width:300px">内容</th>
					<th style="width:100px">地点</th>
					<th style="width:50px">开始时间</th>
					<th>主持者</th>
					<th style="width:50px">创建时间</th>
					<th>与会人员</th>
					<th>日程管理</th>
				</tr>
			</thead>
			<tbody>
			<% int s=0; %>
			<c:forEach var="act" items="${activeList}">
			<% s++; %>
				<tr>
					<td><%=s %></td>
					<td>${act.title }</td>
					<td>${act.description }</td>
					<td>${act.location}</td>
					<td>${act.createTime}</td>
					<td>
					<c:forEach var="emp" items="${emp}">
					<c:if test="${emp.id==act.creatorId}">${emp.name} </c:if>
					</c:forEach> 
					</td>
					<td>${act.startTime}</td>
					<td><c:forEach var="actorlist" items="${actorlist}">
					<c:if test="${actorlist.activityId==act.id}">
					<c:forEach var="emp" items="${emp}">
					<c:if test="${emp.id==actorlist.actorId}">${emp.name}, </c:if>
					</c:forEach> 
					</c:if>
					</c:forEach> </td>
					<td>
					<a href="">编辑</a>
					</td>
				</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>

</div>